import {NgModule} from '@angular/core';
import {CommonModule} from '@angular/common';
import {FormsModule} from '@angular/forms'; // <--- JavaScript import from Angular

import {NzIconModule} from 'ng-zorro-antd/icon';
import {AlertFill} from '@ant-design/icons-angular/icons';
import {IconDefinition} from '@ant-design/icons-angular';
import {DemoNgZorroAntdModule} from '../NG-ZORRO/ng-zorro-antd.module';
import { SortablejsModule } from 'ngx-sortablejs';

import {BtGroupComponent} from './bt-group/bt-group.component';
import {ButtonCopyComponent} from './commponent/button-copy/button-copy.component';
import {ImageUploadComponent} from './commponent/image-upload/image-upload.component';
import {FollowComponent} from './commponent/follow-component/follow.component';
import { FollowUpComponent } from './commponent/follow-up/follow-up.component';
import { AssessmentDetailsModalComponent } from './commponent/assessment-details-modal/assessment-details-modal.component';
import { CheckboxGroupComponent } from './commponent/checkbox-group/checkbox-group.component';
import { FansTableModalComponent } from './commponent/fans-table-modal/fans-table-modal.component';
import { LineChartComponent } from './echarts-components/line-chart/line-chart.component';
import { MachineReportModalComponent } from './commponent/machine-report-modal/machine-report-modal.component';
import { UploadImgsComponent } from './commponent/upload-imgs/upload-imgs.component';
import { SearchBarComponent } from './commponent/search-bar/search-bar.component';
import { CitySelectComponent } from './commponent/city-select/city-select.component';
import { SecondPriceChangeComponent } from './commponent/second-price-change/second-price-change.component';
import { UserLabelAddComponent } from './commponent/user-label-add/user-label-add.component';
import { UploadFilesComponent } from './commponent/upload-files/upload-files.component';

const icons: IconDefinition[] = [AlertFill];

@NgModule({
  declarations: [
    BtGroupComponent,
    FollowComponent,
    ButtonCopyComponent,
    ImageUploadComponent,
    FollowUpComponent,
    AssessmentDetailsModalComponent,
    CheckboxGroupComponent,
    FansTableModalComponent,
    LineChartComponent,
    MachineReportModalComponent,
    UploadImgsComponent,
    SearchBarComponent,
    CitySelectComponent,
    SecondPriceChangeComponent,
    UserLabelAddComponent,
    UploadFilesComponent,
  ],
  imports: [
    NzIconModule.forRoot(icons),
    DemoNgZorroAntdModule,
    FormsModule,
    CommonModule,
    SortablejsModule
  ],
  exports: [
    BtGroupComponent,
    FollowComponent,
    ButtonCopyComponent,
    ImageUploadComponent,
    FollowUpComponent,
    AssessmentDetailsModalComponent,
    CheckboxGroupComponent,
    FansTableModalComponent,
    LineChartComponent,
    MachineReportModalComponent,
    UploadImgsComponent,
    SearchBarComponent,
    CitySelectComponent,
    SecondPriceChangeComponent,
    UploadFilesComponent
  ],
  providers: []
})
export class sharedModule {
}
